<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			
			#body{width: 700px;}
		</style>
	</head>
	<body>
		<div id="body">
			<div>
				<img src="img/dd_logo.jpg" />
				<input type="button" value="关闭" /><br />
				<span class="s1">商品图片</span>
				<span class="s2">商品信息</span>
				<span class="s3">单价</span>
				<span class="s4">数量</span>
				<span class="s5">总价</span>
				<span class="s6">操作</span>
				<hr />
			</div>
			<div id="tp1">
				<img src="img/dog.jpg" />
				<span class="t1">我和狗狗活下来了</span>
				<input type="button" value="删除" onclick="del1();"/>
				<hr />
			</div>
			<div id="tp2">
				<img src="img/mai.jpg" />
				<span> 雾霾来了怎么办</span>	
				<input type="button" value="删除" onclick="del2();" />
			</div>
		</div>
		<script type="text/javascript">
			function del1(){
				var delNode=document.getElementById("tp1");
				delNode.parentNode.removeChild(delNode);
			}
			function del2(){
				var delNode=document.getElementById("tp2");
				delNode.parentNode.removeChild(delNode);
			}
		</script>
	</body>
</html>
